﻿Public Class frmTraCuuSach

    Private Sub cbTenSach_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbTenSach.CheckedChanged
        If cbTenSach.Checked = True Then
            txtTenSach.Enabled = True
        Else
            txtTenSach.Enabled = False
        End If
    End Sub

    Private Sub cbTheLoai_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbTheLoai.CheckedChanged
        If cbTheLoai.Checked = True Then
            ComboBox_TheLoai.Enabled = True
        Else
            ComboBox_TheLoai.Enabled = False
        End If
    End Sub



    Private Sub cbGiaBan_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbGiaBan.CheckedChanged
        If cbGiaBan.Checked = True Then
            nudGiaBanTu.Enabled = True
            nudGiaBanDen.Enabled = True
        Else
            nudGiaBanTu.Enabled = False
            nudGiaBanDen.Enabled = False
        End If
    End Sub

    Private Sub cbNhaSanXuat_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbNhaSanXuat.CheckedChanged
        If cbNhaSanXuat.Checked = True Then
            txtNhaSanXuat.Enabled = True
        Else
            txtNhaSanXuat.Enabled = False
        End If
    End Sub

    Private Sub FormTraCuuSach_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        nudGiaBanDen.Enabled = False
        nudGiaBanTu.Enabled = False
        txtNhaSanXuat.Enabled = False
        txtTenSach.Enabled = False
        ComboBox_TheLoai.Enabled = False
    End Sub
End Class